<!DOCTYPE html>
<html >
<head>
    <meta charset="utf-8"/>
    <title>交友留言</title>
    <meta name="keywords" content="manager,personal,manage"/>
    <meta name="description" content="交友,留言,交友留言"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="./assets/css/validationEngine.jquery.css" type="text/css">
    <link rel="stylesheet" href="./assets/css/datepicker.css"/>
    <style>
        table{
            table-layout:fixed;
        }
        td{
            overflow:hidden;
            text-overflow:ellipsis;
            white-space:nowrap;
        }
        @media screen and (min-width:768px){
            .modal-dialog{
                right:auto;left:50%;width:690px;padding-top:30px;padding-bottom: 30px;
            }
        }
    </style>
    <script src="./assets/js/jquery.validationEngine-zh_CN.js"></script>
    <script src="./assets/js/jquery.validationEngine.js"></script>
</head>
<body>
<div class="page-content">
    <div class="row">
        <div class="col-xs-12">
            <form id="stationFormId" class="form-horizontal" role="form">
                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon group-addon2">留言内容</span>
                    <span class="spanIcons"></span>
                    <input type="text" class="form-control form-control-two" id="search-content">
                </div>
                <!--<div class="input-group input-group-sm input-group-sm3">-->
                    <!--<span class="input-group-addon group-addon">是否显示</span>-->
                    <!--<span class="spanIcons"></span>-->
                    <!--<select class="form-control form-control-two" id="userRecommendType">-->
                        <!--<option value="">全部</option>-->
                        <!--<option value="1">显示中</option>-->
                        <!--<option value="0">隐藏中</option>-->
                    <!--</select>-->
                <!--</div>-->
                <div class="input-group input-group-sm input-group-sm3" style="margin-left: 20px;">
                    <button type="submit" id="dataSearch" class="btn btn-primary btn-sm" title="查询">
                        <i class="icon-search nav-search-icon"></i>
                    </button>
                    <button id="dataadd" type="button" class="btn btn-primary btn-sm"
                            data-toggle="modal" data-target="#addModal" title="帖子用户">
                        <i class="icon-plus-sign bigger-120"></i>
                    </button>
                    <button id="dataupdate" type="button" class="btn btn-sm btn-success"
                            data-toggle="modal" data-target="#updateModal" disabled
                            title="帖子修改">
                        <i class="icon-pencil bigger-130"></i>
                    </button>
                    <button id="datadelete" type="button" class="btn btn-sm btn-danger"
                            data-toggle="modal" data-target="#deleteModal" disabled
                            title="帖子删除">
                        <i class="icon-trash bigger-130"></i>
                    </button>
                </div>
            </form>

            <div class="row" style="margin-top: 0px;">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <table id="message_table" class="table"></table>
                    <!-- PAGE CONTENT ENDS -->
                </div>
                <!-- /.col -->
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /.page-content -->
<!-- 添加的modal start-->
<div class="modal fade bs-example-modal-lg" id="addModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">模板添加</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="addForm" data-type="addAdmin">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">内容</label>
                        <div class="col-sm-10">
                            <textarea cols="20" rows="5"  class="validate[required] form-control" id="addContent" placeholder="请输入内容"></textarea>
                            <!--<input type="text" class="validate[required] form-control" id="addContent" placeholder="请输入内容">-->
                        </div>
                    </div>
                    <!--<div class="form-group">-->
                        <!--<label class="col-sm-2 control-label">用户ID</label>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" id="addUserId" class="form-control" placeholder="请输入ID">-->
                        <!--</div>-->
                    <!--</div>-->
                </form>

            </div>
            <div class="modal-footer">
                <!--<button class="btn btn-primary" form="addForm">保存</button>-->
                <button type="button" class="btn btn-primary" name="submit" data-type="add">保存</button>
                <!--  <button type="reset" class="btn btn-warnning">重置</button> -->
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>

            </div>
        </div>
    </div>
</div>
<!-- 添加的modal end-->

<!-- 修改的modal start-->
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog"
     aria-labelledby="exampleModalLabel">
    <div id="modalDialog" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">修改模板</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="updateForm" data-type="updateAdmin">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">模板ID</label>
                        <div class="col-sm-10">
                            <input type="text" id="updateTemplateId" class="form-control" placeholder="请输入ID" disabled>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">内容</label>
                        <div class="col-sm-10">
                            <textarea cols="20" rows="5"  class="validate[required] form-control" id="addContent" placeholder="请输入内容"></textarea>
                        </div>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" name="submit" data-type="update">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 修改的modal end-->

<!-- 删除的modal start-->
<div class="modal fade" id="deleteModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">删除当前模板</h4>
            </div>
            <!--Form的id为myForm-->
            <form id="deleteForm" data-type="deleteAdmin">
                <div class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <!--<button type="submit" class="btn btn-primary">确认</button>-->
                    <button type="button" class="btn btn-primary" name="submit" data-type="delete">确认</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 删除的modal end-->
<script src="./assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="script/leaveMessage.js"></script>
</body>
</html>
